package com.pipi.sso.dao.manager;

import com.pipi.sso.dao.model.UserRoleDO;
import com.pipi.sso.dao.query.UserRoleQuery;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;


/**
 * Manager for UserRole.
 */
public interface UserRoleManager {
    /**
     * query count by query condition.
     */
    int countByQuery(UserRoleQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(UserRoleQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(UserRoleDO record);

    /**
     * insert selective.
     */
    long insertSelective(UserRoleDO record);

    /**
     * select by query condition.
     */
    List<UserRoleDO> selectByQuery(UserRoleQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<UserRoleDO> selectByQueryWithPage(UserRoleQuery query);

    /**
     * select by primary key.
     */
    UserRoleDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( UserRoleDO record,  UserRoleQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(UserRoleDO record, UserRoleQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(UserRoleDO record);
}